<template>
  <div class="user-two">
    <div class="user-bottom">
      <div class="song-box">
        <div>最多收藏</div>
        <div>
          <song-item></song-item>
          <song-item></song-item>
          <song-item></song-item>
          <song-item></song-item>
          <song-item></song-item>
        </div>
      </div>
      <div class="song-box">
        <div>最新发表</div>
        <div>
          <song-item></song-item>
          <song-item></song-item>
          <song-item></song-item>
          <song-item></song-item>
          <song-item></song-item>
        </div>
      </div>
      <div class="song-box">
        <div>歌曲最多</div>
        <div>
          <song-item></song-item>
          <song-item></song-item>
          <song-item></song-item>
          <song-item></song-item>
          <song-item></song-item>
        </div>
      </div>
    </div>
    <div class="song-model">
      <div class="song-model-header">
        <div><img :src="require('@/assets/对话.png')" alt="" /></div>
        <div><img :src="require('@/assets/love.png')" alt="" /></div>
      </div>
      <div class="song-model-content">
        <div class="img-p">
          <img
            style="width: 40px; height: 40px; border-radious: 50%"
            src="https://heikaimu.github.io/images/2.jpeg"
            alt=""
          />
          <p>
            描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述
          </p>
        </div>
        <div class="list">
          <div class="model-list">
            <div>
              <input type="checkbox" />
              Akmrmg longrz -- gzny
            </div>
            <div>time</div>
            <div>
              <img :src="require('@/assets/play1.png')" alt="" />
            </div>
          </div>
          <div class="model-list">
            <div>
              <input type="checkbox" />
              Akmrmg longrz -- gzny
            </div>
            <div>time</div>
            <div>
              <img :src="require('@/assets/play1.png')" alt="" />
            </div>
          </div>
          <div class="model-list">
            <div>
              <input type="checkbox" />
              Akmrmg longrz -- gzny
            </div>
            <div>time</div>
            <div>
              <img :src="require('@/assets/play1.png')" alt="" />
            </div>
          </div>
          <div class="model-list">
            <div>
              <input type="checkbox" />
              Akmrmg longrz -- gzny
            </div>
            <div>time</div>
            <div>
              <img :src="require('@/assets/play1.png')" alt="" />
            </div>
          </div>
        </div>
      </div>
      <div class="song-model-footer">
        <div><img :src="require('@/assets/hand1.png')" alt="" /></div>
        <div><img :src="require('@/assets/hand1.png')" alt="" /></div>
      </div>
    </div>
  </div>
</template>

<script>
import SongItem from "../components/SongItem.vue";

export default {
  components: { SongItem },
  data() {
    return {
      list: [
        "https://heikaimu.github.io/images/1.jpeg",
        "https://heikaimu.github.io/images/2.jpeg",
        "https://heikaimu.github.io/images/3.jpeg",
        "https://heikaimu.github.io/images/1.jpeg",
        "https://heikaimu.github.io/images/2.jpeg",
        "https://heikaimu.github.io/images/3.jpeg",
        "https://heikaimu.github.io/images/1.jpeg",
        "https://heikaimu.github.io/images/2.jpeg",
        "https://heikaimu.github.io/images/3.jpeg",
      ],
    };
  },
  computed: {
    itemWidth() {
      return 138 * 0.5 * (document.documentElement.clientWidth / 375); // #rem布局 计算宽度
    },
    gutterWidth() {
      return 9 * 0.5 * (document.documentElement.clientWidth / 375); //#rem布局 计算x轴方向margin(y轴方向的margin自定义在css中即可)
    },
  },
  //下边的内容没有用到，需要的小伙伴可以看文档了解，如果需求后续回更新
  methods: {
    scroll(scrollData) {
      console.log(scrollData);
    },
    switchCol(col) {
      this.col = col;
      console.log(this.col);
    },
    loadmore(index) {
      this.data = this.data.concat(this.data);
    },
    handleClickCard() {},
  },
};
</script>

<style scoped>
.user-two {
  height: 100%;
  padding: 24px;
}

.user-bottom {
  display: flex;

  justify-content: space-around;
}
.user-bottom > div {
  width: 33.33%;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
}

.song-box > div:nth-child(1) {
  background-color: #ec2c2c;
  width: 200px;
  border-radius: 50%;

  border-bottom-left-radius: 40px;
  border-top-left-radius: 40px;
  border-bottom-right-radius: 40px;
  border-top-right-radius: 40px;
}
.song-box > div:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
}

.song-model {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90vh;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: #30a5dd;
  border-radius: 5px;
}

.song-model-header {
  display: flex;
  justify-content: space-between;
}
.song-model-footer {
  display: flex;
  justify-content: space-between;
}
.song-model-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
  flex: 1;
}
.img-p {
  display: flex;
  text-align: left;
  font-size: 14px;
  display: flex;
  text-align: left;
  padding-bottom: 12px;
  border-bottom: 1px solid;
}
.img-p > img {
  min-width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 12px;
}
.list {
  flex: 1;
}
.model-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 0 0;
  margin: 4px 0;
  background: #282828;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}
.model-list>div:nth-child(1) {
  width: 190px;
  background: #fff;
  color: #000;

    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.model-list>div:nth-child(3) {
  display: inherit;
  align-items: center;
}
</style>
